using System;
using Rdl;

namespace GTame.ReportParser
{

    public class TableType
    {

        private ActionType _Action;
        private string _Bookmark;
        private CustomPropertiesType _CustomProperties;
        private string _DataElementName;
        private TableTypeDataElementOutput _DataElementOutput;
        private string _DataSetName;
        private string _DetailDataCollectionName;
        private string _DetailDataElementName;
        private TableTypeDetailDataElementOutput _DetailDataElementOutput;
        private DetailsType _Details;
        private Nullable<bool> _FillPage;
        private FiltersType _Filters;
        private FooterType _Footer;
        private HeaderType _Header;
        private string _Height;
        private Nullable<bool> _KeepTogether;
        private string _Label;
        private string _Left;
        private string _LinkToChild;
        private string _NoRows;
        private Nullable<bool> _PageBreakAtEnd;
        private Nullable<bool> _PageBreakAtStart;
        private string _RepeatWith;
        private StyleType _Style;
        private TableColumnsType _TableColumns;
        private TableGroupsType _TableGroups;
        private string _ToolTip;
        private string _Top;
        private VisibilityType _Visibility;
        private string _Width;
        private Nullable<uint> _ZIndex;
        private string nameField;

        public ActionType Action
        {
            get
            {
                if (_Action == null)
                    _Action = new ActionType();
                return _Action;
            }
            set
            {
                _Action = value;
            }
        }

        public string Bookmark
        {
            get
            {
                return _Bookmark;
            }
            set
            {
                _Bookmark = value;
            }
        }

        public CustomPropertiesType CustomProperties
        {
            get
            {
                if (_CustomProperties == null)
                    _CustomProperties = new CustomPropertiesType();
                return _CustomProperties;
            }
            set
            {
                _CustomProperties = value;
            }
        }

        public string DataElementName
        {
            get
            {
                return _DataElementName;
            }
            set
            {
                _DataElementName = value;
            }
        }

        public TableTypeDataElementOutput DataElementOutput
        {
            get
            {
                return _DataElementOutput;
            }
            set
            {
                _DataElementOutput = value;
            }
        }

        public string DataSetName
        {
            get
            {
                return _DataSetName;
            }
            set
            {
                _DataSetName = value;
            }
        }

        public string DetailDataCollectionName
        {
            get
            {
                return _DetailDataCollectionName;
            }
            set
            {
                _DetailDataCollectionName = value;
            }
        }

        public string DetailDataElementName
        {
            get
            {
                return _DetailDataElementName;
            }
            set
            {
                _DetailDataElementName = value;
            }
        }

        public TableTypeDetailDataElementOutput DetailDataElementOutput
        {
            get
            {
                return _DetailDataElementOutput;
            }
            set
            {
                _DetailDataElementOutput = value;
            }
        }

        public DetailsType Details
        {
            get
            {
                if (_Details == null)
                    _Details = new DetailsType();
                return _Details;
            }
            set
            {
                _Details = value;
            }
        }

        public Nullable<bool> FillPage
        {
            get
            {
                return _FillPage;
            }
            set
            {
                _FillPage = value;
            }
        }

        public FiltersType Filters
        {
            get
            {
                if (_Filters == null)
                    _Filters = new FiltersType();
                return _Filters;
            }
            set
            {
                _Filters = value;
            }
        }

        public FooterType Footer
        {
            get
            {
                if (_Footer == null)
                    _Footer = new FooterType();
                return _Footer;
            }
            set
            {
                _Footer = value;
            }
        }

        public HeaderType Header
        {
            get
            {
                if (_Header == null)
                    _Header = new HeaderType();
                return _Header;
            }
            set
            {
                _Header = value;
            }
        }

        public string Height
        {
            get
            {
                return _Height;
            }
            set
            {
                _Height = value;
            }
        }

        public Nullable<bool> KeepTogether
        {
            get
            {
                return _KeepTogether;
            }
            set
            {
                _KeepTogether = value;
            }
        }

        public string Label
        {
            get
            {
                return _Label;
            }
            set
            {
                _Label = value;
            }
        }

        public string Left
        {
            get
            {
                return _Left;
            }
            set
            {
                _Left = value;
            }
        }

        public string LinkToChild
        {
            get
            {
                return _LinkToChild;
            }
            set
            {
                _LinkToChild = value;
            }
        }

        public string Name
        {
            get
            {
                return nameField;
            }
            set
            {
                nameField = value;
            }
        }

        public string NoRows
        {
            get
            {
                return _NoRows;
            }
            set
            {
                _NoRows = value;
            }
        }

        public Nullable<bool> PageBreakAtEnd
        {
            get
            {
                return _PageBreakAtEnd;
            }
            set
            {
                _PageBreakAtEnd = value;
            }
        }

        public Nullable<bool> PageBreakAtStart
        {
            get
            {
                return _PageBreakAtStart;
            }
            set
            {
                _PageBreakAtStart = value;
            }
        }

        public string RepeatWith
        {
            get
            {
                return _RepeatWith;
            }
            set
            {
                _RepeatWith = value;
            }
        }

        public StyleType Style
        {
            get
            {
                if (_Style == null)
                    _Style = new StyleType();
                return _Style;
            }
            set
            {
                _Style = value;
            }
        }

        public TableColumnsType TableColumns
        {
            get
            {
                if (_TableColumns == null)
                    _TableColumns = new TableColumnsType();
                return _TableColumns;
            }
            set
            {
                _TableColumns = value;
            }
        }

        public TableGroupsType TableGroups
        {
            get
            {
                if (_TableGroups == null)
                    _TableGroups = new TableGroupsType();
                return _TableGroups;
            }
            set
            {
                _TableGroups = value;
            }
        }

        public string ToolTip
        {
            get
            {
                return _ToolTip;
            }
            set
            {
                _ToolTip = value;
            }
        }

        public string Top
        {
            get
            {
                return _Top;
            }
            set
            {
                _Top = value;
            }
        }

        public VisibilityType Visibility
        {
            get
            {
                if (_Visibility == null)
                    _Visibility = new VisibilityType();
                return _Visibility;
            }
            set
            {
                _Visibility = value;
            }
        }

        public string Width
        {
            get
            {
                return _Width;
            }
            set
            {
                _Width = value;
            }
        }

        public Nullable<uint> ZIndex
        {
            get
            {
                return _ZIndex;
            }
            set
            {
                _ZIndex = value;
            }
        }

        public TableType()
        {
            _FillPage = new Nullable<bool>[]();
            _KeepTogether = new Nullable<bool>[]();
            _PageBreakAtEnd = new Nullable<bool>[]();
            _PageBreakAtStart = new Nullable<bool>[]();
            _ZIndex = new Nullable<uint>[]();
        }

        public TableType Write()
        {
            // trial
            return null;
        }

    } // class TableType

}

